package com.cjb.cloudsystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjb.cloudsystem.entity.DeviceStatus;
import com.cjb.cloudsystem.vo.DeviceStatusVO;

import java.util.List;

/**
* 设备状态
*
* @author 陈锦斌 2213859123@qq.com
* @since 1.0.0 2023-11-05
*/
public interface DeviceStatusService extends IService<DeviceStatus> {
    /**
    * 单体保存
    * @Author chenjinbin
    * @Value
    * @Title
    */
    boolean save(DeviceStatus deviceStatus);

    /**
    *批量保存
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    Integer listSave(List<DeviceStatus> deviceStatus);
    /**
    * 批量更新
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    void listUpdate(List<DeviceStatus> deviceStatus);
    /**
     * 单个更新
     *
     * @Author chenjinbin
     * @Value
     * @Title
     */
    void update(DeviceStatus deviceStatus);
    /**
    * 批量删除
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    void listDelete(List<DeviceStatus> deviceStatus);


    /**
    * 通过id删除
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    int deleteById(DeviceStatus deviceStatus);
    /**
    *单个查询
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    DeviceStatus queryById(Long id);
    /**
    * 分页查询
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    Page queryPage(Page deviceStatusPage , DeviceStatusVO deviceStatusVO);

    /**
     * 查询一天
     *
     * @Author chenjinbin
     * @Value
     * @Title
     */
    List<DeviceStatus> queryList(DeviceStatus deviceStatus);
    /**
    * 返回全部信息
    *
    * @Author chenjinbin
    * @Value
    * @Title
    */
    List<DeviceStatus> returnAllData();
}
